<?php
    $baseurl = current(split("index", $_SERVER['PHP_SELF']));
    echo "<p class='banner' align='right' onmousedown='tekan(event);' onmousemove='gerak(event);' onmouseup='lepas();' onmouseout='lepas();'> <a href='Javascript:close_slip()'> <img src='".$baseurl."/img/no4.gif' alt='[ X ]'> </a></p>";
    echo "<table>";        
        if($category==1)
        {
            echo "<tr><td> Jobseekers </td><td class='web_statistic'>: ".count($jobseekers)." </td></tr>";
            echo "<tr><td> Employers </td><td class='web_statistic'>: ".count($employers)." </td></tr>";
            echo "<tr><td> Adv Jobs </td><td class='web_statistic'>: ".count($jobs)." </td></tr>";
            echo "<tr><td> Commercial Advs </td><td class='web_statistic'>: ".count($advs)." </td></tr>";
            
            echo "<tr><td colspan='3'><hr></td></tr>";
            echo "<tr><td> Employers ( ".count($employers)." ) </td><td align='right'> @50k </td><td class='web_statistic'>: Rp. ".(count($employers)*50).".000 </td></tr>";
            echo "<tr><td> Jobs ( ".count($jobs)." )</td><td align='right'> @75k </td><td class='web_statistic'>: Rp. ".(count($jobs)*75).".000 </td></tr>";
            echo "<tr><td> Advs ( ".count($advs)." )</td><td align='right'> @100k </td><td class='web_statistic'>: Rp. ".(count($advs)*100).".000 </td></tr>";
            echo "<tr><td> </td><td> </td><td align='right'><hr></td></tr>";
            $total = (count($employers)*50) + (count($jobs)*75) + (count($advs)*100);
            echo "<tr><td> </td><td> </td><td> Rp. ".$total.".000</td></tr>";
            
        }
        if($category==2)
        {
            echo "<tr><td> Jobseekers </td><td class='web_statistic'>: ".count($jobseekers)." </td></tr>";
            echo "<tr><td> Employers </td><td class='web_statistic'>: ".count($employers)." </td></tr>";
        }        
         if($category==3)
        {
            echo "<tr><td> Adv Jobs </td><td class='web_statistic'>: ".count($jobs)." </td></tr>";
            echo "<tr><td> Commercial Advs </td><td class='web_statistic'>: ".count($advs)." </td></tr>";
        }  
        if($category==4)
        {
            echo "<tr><td> Employers ( ".count($employers)." ) </td><td align='right'> @50k </td><td class='web_statistic'>: Rp. ".(count($employers)*50).".000 </td></tr>";
            echo "<tr><td> Jobs ( ".count($jobs)." )</td><td align='right'> @75k </td><td class='web_statistic'>: Rp. ".(count($jobs)*75).".000 </td></tr>";
            echo "<tr><td> Advs ( ".count($advs)." )</td><td align='right'> @100k </td><td class='web_statistic'>: Rp. ".(count($advs)*100).".000 </td></tr>";
            echo "<tr><td> </td><td> </td><td align='right'><hr></td></tr>";
            $total = (count($employers)*50) + (count($jobs)*75) + (count($advs)*100);
            echo "<tr><td> </td><td> </td><td> Rp. ".$total.".000</td></tr>";
        }    
    
    
    
    
    echo "</table>";
?>